﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using DummyObjects;

namespace DummyFakeStubMock.Tests
{
    [TestFixture]
    public class DummyTestClass
    {
        [Test]
        public void TestWithADummy()
        {
            var dependency = new DummyDependency();
            var dependentClass = new DependentClass(dependency);
            const string param = "abc";
            const int expectedResultOne = 1;
            var resultOne = dependentClass.GetValue(param);
            Assert.AreEqual(expectedResultOne, resultOne);
        }
    }
    public class DummyDependency : IDependency
    {
        public int GetValue(string s)
        {
            return 1;
        }
    }
}
